package edu.friday.service;

import edu.friday.common.result.RestResult;
import edu.friday.common.result.TableDataInfo;
import edu.friday.model.SysRole;
import edu.friday.model.vo.SysRoleVO;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

public interface SysRoleService {
    List<SysRole> selectRoleAll();

    List<Long> selectRoleListByUserId(Long userId);

    TableDataInfo selectRoleList(SysRoleVO user, Pageable page);

    String checkRoleNameUnique(String roleName);

    String checkRoleKeyUnique(SysRoleVO sysRoleVO);

    RestResult insertRole(SysRoleVO sysRoleVO);


    SysRole selectRoleMenuById(Long roleId);

    int updateStatus(Long roleId,String status);

    Set<String> selectRolePermissionByUserId(Long userId);
}
